package cn.lds.j368.dsbank.service.impl;

import cn.lds.j368.dsbank.domain.DataDictionary;
import cn.lds.j368.dsbank.mapper.DataDictionaryMapper;
import cn.lds.j368.dsbank.service.DataDictionaryService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DataDictionaryServiceImpl implements DataDictionaryService {

    @Autowired
    private DataDictionaryMapper dataDictionaryMapper;
    @Override
    public List<DataDictionary> selectDataByTypeCode(String typeCode) {

        QueryWrapper<DataDictionary> dataDictionaryQueryWrapper = new QueryWrapper<>(new DataDictionary()).eq("type_code",typeCode);

        return dataDictionaryMapper.selectList(dataDictionaryQueryWrapper);
    }
}
